import request from '@/utils/request'

/**
 * AGV历史任务分页查询
 * @param {查询条件} data
 */
export function pageTaskAgvDis(query) {
  return request({
    url: 'TaskManage/TaskAgvDis/pageList',
    method: 'get',
    params: query,
  })
}

/**
 * 新增AGV历史任务
 * @param data
 */
export function addTaskAgvDis(data) {
  return request({
    url: 'TaskManage/TaskAgvDis',
    method: 'post',
    data: data,
  })
}
/**
 * 修改AGV历史任务
 * @param data
 */
export function updateTaskAgvDis(data) {
  return request({
    url: 'TaskManage/TaskAgvDis',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取AGV历史任务详情
 * @param {Id}
 */
export function getTaskAgvDis(id) {
  return request({
    url: 'TaskManage/TaskAgvDis/' + id,
    method: 'get'
  })
}

/**
 * 删除AGV历史任务
 * @param {主键} pid
 */
export function delTaskAgvDis(pid) {
  return request({
    url: 'TaskManage/TaskAgvDis/delete',
    method: 'POST',
    data: pid
  })
}
